/**
 ******************************* ICE *******************************
 * ========================================================================
 * Project:		icetalkdataservices
 * Package:		org.ice4apps.talk.dataservices
 * File:		IceTalkDAOLocal.java
 * Author: 		robin
 * Date: 		Feb 8, 2009
 * Description:	
 * ========================================================================
 * 
 */
package org.ice4apps.talk.dataservices;

import javax.ejb.Local;
import org.ice4apps.talk.dao.TalkEnterprise;
import org.ice4apps.talk.dao.TalkOffice;
import org.ice4apps.talk.dao.TalkOrganization;
import org.ice4apps.talk.dao.TalkUser;

@Local
public interface IceTalkDataServiceLocal {
    /**
     * Finds talk user by extension
     * 
     * @param extension
     * @return
     */
    public TalkUser findTalkUserByExtension (String extension);
    
    public TalkUser findTalkUserByUsernameAndDomain (String username, String domain);
    
    public void addEnterprise (TalkEnterprise enterprise);
    
    public TalkEnterprise getEnterprise (String id);
    
    public void deleteEnterprise (String id);
    
    public void addOrganization (TalkOrganization org);
    
    public TalkOrganization getOrganization (String id);
    
    public void addOffice (TalkOffice office);
    
    public TalkOffice getOffice (String id);
    
    public void addUser (TalkUser user);
    
    public TalkUser getUser (String id);
}
